package cn.bone.gateway.news.bean;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by superbone on 2017/4/6.
 */
@Entity("news")
public class News {

    @Id
    private String id;
    private int newsId;     //新闻id
    private String title;   //标题
    private int columnId;//栏目id
    private String keywords;//关键字
    private String outLink; //外链地址
    private String source;  //来源
    private List<String> imgs = new ArrayList<>();  //列表显示图片
    private Date createTime;        //创建时间
    private Date lastUpdateTime;    //最后更新时间
    private int realClickNum;       //真实点击量
    private int virtualClickNum;    //虚拟点击量
    private boolean topable;        //是否置顶
    private int topSort;            //置顶排序
    private boolean commentable;    //是否开启评论
    private int type;               //新闻类型
    private int imgType;            //新闻列表图片展示类型
    private int state;              //新闻状态
    private String createName;      //创建人名称

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getNewsId() {
        return newsId;
    }

    public void setNewsId(int newsId) {
        this.newsId = newsId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getColumnId() {
        return columnId;
    }

    public void setColumnId(int columnId) {
        this.columnId = columnId;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getOutLink() {
        return outLink;
    }

    public void setOutLink(String outLink) {
        this.outLink = outLink;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public List<String> getImgs() {
        return imgs;
    }

    public void setImgs(List<String> imgs) {
        this.imgs = imgs;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public int getRealClickNum() {
        return realClickNum;
    }

    public void setRealClickNum(int realClickNum) {
        this.realClickNum = realClickNum;
    }

    public int getVirtualClickNum() {
        return virtualClickNum;
    }

    public void setVirtualClickNum(int virtualClickNum) {
        this.virtualClickNum = virtualClickNum;
    }

    public boolean isTopable() {
        return topable;
    }

    public void setTopable(boolean topable) {
        this.topable = topable;
    }

    public int getTopSort() {
        return topSort;
    }

    public void setTopSort(int topSort) {
        this.topSort = topSort;
    }

    public boolean isCommentable() {
        return commentable;
    }

    public void setCommentable(boolean commentable) {
        this.commentable = commentable;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getImgType() {
        return imgType;
    }

    public void setImgType(int imgType) {
        this.imgType = imgType;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }
}
